package BehavioralPattern.Command;

public class Client {
    public static void main(String[] args) {
        FunctionButton functionButton = new FunctionButton();
        Command command;
        command = (Command)XMLUtil.getBean();
        functionButton.setCommand(command);     // 将命令对象注入功能键
        functionButton.click();     // 调用功能键的业务方法
    }
}
